package com.clpms.bean.req;

import com.clpms.bean.enumBean.AssessmentMethodEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;

/**
 * @author caixinyong
 * @date 2023/5/11 8:05 PM
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class UpdateCourseReq {
	@NotNull(message = "课程id不能为空")
	private Long id;

	@NotBlank(message = "课程编号不能为空")
	private String courseNo;

	@NotBlank(message = "课程名称不能为空")
	private String name;

	/**
	 * 考核方式
	 *
	 * @see AssessmentMethodEnum
	 */
	@NotNull(message = "考核方式不能为空")
	private Integer assessmentMethod;

	/**
	 * 考核内容
	 */
	private String assessmentContent;

	/**
	 * 备注
	 */
	private String remark;
}
